package tools

import (
	"go-caipu/pkg/services/tools/models"
)

type Service interface {
	/*
		sys_tables
	*/

	GetSysTablesPage(cmd SysTableSearch) ([]models.SysTables, int64, error)
	GetSysTable(tabledId int) (models.SysTables, error)
	GetSysTableByTableName(tableName string) (models.SysTables, error)
	InsertSysTables(cmd InsertSysTableCmd) error
	UpdateSysTable(table models.SysTables) (models.SysTables, error)
	RemoveSysTable(id []int) (Result bool, err error)
	/*
		db_tables
	*/

	GetDBTablePage(tablename string, pageSize, pageIndex int) ([]models.DBTables, int64, error)

	GetDBColumnPage(pageSize, pageIndex int) ([]models.DBColumns, int64, error)

	GenToDB(tableId int) error
}
